
cmake_minimum_required(VERSION 3.5.1)

add_library( st_graph_point  st_graph_point.cc )
target_link_libraries( st_graph_point
planning::planning_gflags
planning::st_point
)



add_library( dp_st_cost  dp_st_cost.cc )
target_link_libraries( dp_st_cost
st_graph_point
common_proto
planning::frame
planning::obstacle
planning::st_boundary
planning_proto
)





add_library( gridded_path_time_graph   gridded_path_time_graph.cc )
target_link_libraries( gridded_path_time_graph
dp_st_cost
st_graph_point
cyber::log
common::vehicle_config_helper
common_proto
common::status
planning::obstacle
planning_path_decision
planning::st_graph_data
planning::speed_data
planning_proto
)





add_library( path_time_heuristic_optimizer   path_time_heuristic_optimizer.cc )
target_link_libraries( path_time_heuristic_optimizer
gridded_path_time_graph
dp_st_cost
common::vehicle_config_helper
common::vehicle_state_provider
localization_proto
planning::st_graph_data
planning_proto
st_boundary_mapper
speed_optimizer
)





install(TARGETS  st_graph_point
dp_st_cost
gridded_path_time_graph
path_time_heuristic_optimizer
        EXPORT  apollo-export
        LIBRARY DESTINATION lib
        ARCHIVE DESTINATION lib
        RUNTIME DESTINATION bin
        INCLUDES DESTINATION .
        )